﻿/* Copyright (C) 2013-2014 Ralph Becket
   Released under a variant of the Microsoft Public License -- see ../LICENCE.txt.
*/

.rawb-grid
{
    position: relative;
    overflow: hidden;
    background: white /*#444*/;
    border: 8px solid white /*#444*/;
}

.rawb-grid-section
{
    position: absolute;
    overflow: hidden;
}

/* Grid cells must be absolutely positioned.  We can't use inline-block for
 * layout because that is offset by whitespace between the blocks, which
 * throws out the alignment.
 */
.rawb-grid-cell
{
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;
    border-bottom: 2px solid white;
}

.rawb-grid-footer .rawb-grid-cell
{
    border: none;
}

.rawb-grid-resizer
{
    position: absolute;
    box-sizing: border-box;
    background: white;
    cursor: col-resize;
}

.rawb-grid-footer,
.rawb-grid-header
{
    color: white;
    background: black;
}

.rawb-grid-left.rawb-grid-header,
.rawb-grid-right.rawb-grid-header,
.rawb-grid-left.rawb-grid-footer,
.rawb-grid-right.rawb-grid-footer
{
    background: green;
}

.rawb-grid-left.rawb-grid-values,
.rawb-grid-middle.rawb-grid-values,
.rawb-grid-right.rawb-grid-values
{
    color: black;
    background: #eee;
}

.rawb-grid-left.rawb-grid-values .rawb-grid-striped,
.rawb-grid-middle.rawb-grid-values .rawb-grid-striped,
.rawb-grid-right.rawb-grid-values .rawb-grid-striped
{
    color: black;
    background: #ccc;
}

.rawb-grid-cell.rawb-grid-selected,
.rawb-grid-cell.rawb-grid-selected.rawb-grid-striped
{
    background: #bbf;
}

.rawb-grid-cell-checkbox
{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rawb-scrollbar-track,
.rawb-scrollbar-thumb
{
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
}

.rawb-scrollbar-track
{
    background: #666;
}

.rawb-scrollbar-thumb
{
    background: white;
    border: 1px solid #bbb;
}

.rawb-area-resizing-handle
{
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 0px;
    height: 0px;
    border-width: 15px;
    border-color: red;
    opacity: 1.0;
    border-style: solid;
    border-top: 0;
    border-right: 0;
    border-left-color: transparent;
    cursor: se-resize;
}

.rawb-dropdown
{
    position: relative;
}

.rawb-dropdown-input
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    margin: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: 1px solid black;
}

.rawb-dropdown-input:focus
{
    background: palegoldenrod;
}

.rawb-dropdown-grid
{
    position: absolute;
    left: 0px;
}

.rawb-dropdown-grid .rawb-grid
{
    border: 1px solid black;
}

.rawb-dropdown-grid .rawb-grid-cell,
.rawb-dropdown-grid .rawb-grid-cell.rawb-grid-striped
{
    background: #444;
    color: white;
    border: none;
}

.rawb-dropdown-grid .rawb-grid-cell.rawb-grid-selected,
.rawb-dropdown-grid .rawb-grid-cell.rawb-grid-striped.rawb-grid-selected
{
    background: #666;
}

.rawb-dropdown-match-match
{
    color: palegoldenrod;
}
